using System;
using System.Runtime.Serialization;

namespace Thinktecture.Tools.Web.Services
{
	[Serializable]
	public class MetadataLoadingException : Exception
	{
		/// <summary>
		/// Creates a new <see cref="MetadataLoadingException"/> instance.
		/// </summary>
		public MetadataLoadingException()
		{
		}

		/// <summary>
		/// Creates a new <see cref="MetadataLoadingException"/> instance.
		/// </summary>
		/// <param name="message">Message.</param>
		public MetadataLoadingException(string message)
			: base(message)
		{
		}

		/// <summary>
		/// Creates a new <see cref="MetadataLoadingException"/> instance.
		/// </summary>
		/// <param name="message">Message.</param>
		/// <param name="inner">Inner.</param>
		public MetadataLoadingException(string message, Exception inner)
			: base(message, inner)
		{
		}

		/// <summary>
		/// Creates a new <see cref="MetadataLoadingException"/> instance.
		/// </summary>
		/// <param name="serializationInfo">Serialization info.</param>
		/// <param name="serializationContext">Serialization context.</param>
		protected MetadataLoadingException(SerializationInfo serializationInfo, StreamingContext serializationContext) : base(serializationInfo, serializationContext)
		{}
	}
}
